<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>布尔型</title>
</head>
<body>
<script>
    var num =10;
    console.log(typeof !!num);
    console.log(!!num);
</script>
</body>
</html>